package com.usain.config;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class Sched {
   // @Scheduled(cron="0/2 * * * * ?")
    public void sceduledMethod(){
        System.out.println("定时触发："+new Date());
    }
}
